//
//  VideoHeaderCell.m
//  Tang
//
//  Created by lanou on 15/12/3.
//  Copyright © 2015年 352324497@qq.com. All rights reserved.
//

#import "VideoHeaderCell.h"
@interface VideoHeaderCell ()
@property (nonatomic, strong) UILabel *titleLabel;//标题
@property (nonatomic, strong) UIImageView *moreIcon;//更多图片
@end
@implementation VideoHeaderCell
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithReuseIdentifier:reuseIdentifier])
    {
        self.contentView.backgroundColor = [UIColor whiteColor];
       CGFloat height =  KWidth * 35 / 414;
        //NSLog(@"header%f,",self.bounds.size.height);
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(KWidth * 20/ 414, height / 4, KWidth / 2, height / 1.5)];
        self.titleLabel.font = [UIFont systemFontOfSize:20 *KWidth / 414];
        self.titleLabel.textColor = [UIColor redColor];
        self.titleLabel.alpha = 0.8;
        [self.contentView addSubview:_titleLabel];
        
        self.moreIcon = [[UIImageView alloc] initWithFrame:CGRectMake(KWidth - (KWidth * 40 / 414), height / 4, KWidth * 30 / 414 , height / 1.5)];
        self.moreIcon.image = [UIImage imageNamed:@"more"];
        [self.contentView addSubview:_moreIcon];
    }
    return self;
}

- (void)setModel:(VideoViewModel *)model
{
    _model = model;
    
    self.titleLabel.text = model.name;
}


@end
